#!/bin/bash
[ ${HOSTNAME:0:$((${#HOSTNAME}-1))} == "triolith" ] && ex_kgrn=`which kgrn_cpaT` || ex_kgrn=`which kgrn_cpaM`
[ ${HOSTNAME:0:$((${#HOSTNAME}-1))} == "triolith" ] && ex_kfcd=`which kfcd_cpaT` || ex_kfcd=`which kfcd_cpaM`

job_kgrn=$1.scf
job_kfcd=$1.fcd

[ -d pot ] || mkdir pot
[ -d chd ] || mkdir chd

#[ -d pot ] && echo pot is exist
$ex_kgrn<$job_kgrn
mv $1.prn $1.kgrn

$ex_kfcd<$job_kfcd
mv $1.prn $1.kfcd
